<template>
  <div id="app">
    <el-container style="height: 100%;">
      <el-header style="background-color: #409EFF;">
        <div class="header">WECHAT Admin</div>
      </el-header>
      <el-container>
        <el-aside>
          <el-menu router default-active="2" class="el-menu-vertical-demo">
            <el-menu-item index="/">
              <i class="el-icon-setting"></i>
              <span slot="title">主面板</span>
            </el-menu-item>
            <el-menu-item index="/custom_menu">
              <i class="el-icon-menu"></i>
              <span slot="title">自定义菜单</span>
            </el-menu-item>
            <el-menu-item index="/message">
              <i class="el-icon-menu"></i>
              <span slot="title">消息管理</span>
            </el-menu-item>
            <el-menu-item index="/user">
              <i class="el-icon-menu"></i>
              <span slot="title">用户管理</span>
            </el-menu-item>
            <el-menu-item index="/setting">
              <i class="el-icon-setting"></i>
              <span slot="title">公众号参数</span>
            </el-menu-item>
            <el-menu-item index="/doc">
              <i class="el-icon-setting"></i>
              <span slot="title">开发文档</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>

  </div>
</template>

<script>
export default {
  name: 'app'
}
</script>

<style>
body,
html,
#app {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
}

.el-menu {
  height: 100%;
}

.header {
  line-height: 60px;
  font-weight: bolder;
  color: white;
}
</style>
